<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
use auth\Auth;
use think\Session;
class Common extends Controller
{
  public function _initialize()
  {
    if (Session::get('uid')) {

    }else{
      $this->result('','1001','请重新登录');
    }




    // $AUTH = new \auth\Auth();//加载外部类
    // if (!session('?super_admin') || !session('super_admin')) {
    //   $node = 'index'.Request::instance()->get('url');
    //   //$node = request()->module() . '/' . request()->controller() . '/' . request()->action();//模板——控制器——方法
    //   if(!$AUTH->check($node,Session::get('uid'))){
    //     // echo $node;
    //     //$this->error('没有权限','/index/start/#/user/login');
    //   }
    // }
  }















}
